package com.zj.core.bean

/**
 * Created by Administrator on 2019/4/21.
 */

class DeviceValue {
    var value: Float = 0.toFloat()
    private var mType: String? = null

    /**
     * 血压
     */
    private var mHighBlood: String? = null
    private var mLowBlood: String? = null
    private var mPulse: String? = null

    /**
     * 身高体重
     * @return
     */
    private var mHight: Float = 0.toFloat()
    private var mWeight: Float = 0.toFloat()

    /**
     * 蓝牙搜索模式
     * @return
     */
    var isBleStatus = false

    /**
     * 蓝牙服务EventBus处理类型
     * 0：蓝牙模式   自动/手动
     * 1：进行连接
     */
    private var mBleViewType: String? = null

    /**
     * 蓝牙mac地址
     */
    private var mBleCode: String? = null

    /**
     * 血糖值
     */
    var bloodSugar: Float = 0.toFloat()

    /**
     * 血氧
     */
    private var mSpoValue: Int = 0
    private var mBmpValue: Int = 0

    constructor() {}

    fun getmSpoValue(): Int {
        return mSpoValue
    }

    fun setmSpoValue(mSpoValue: Int) {
        this.mSpoValue = mSpoValue
    }

    fun getmBmpValue(): Int {
        return mBmpValue
    }

    fun setmBmpValue(mBmpValue: Int) {
        this.mBmpValue = mBmpValue
    }

    fun getmBleCode(): String? {
        return mBleCode
    }

    fun setmBleCode(mBleCode: String) {
        this.mBleCode = mBleCode
    }

    fun getmBleViewType(): String? {
        return mBleViewType
    }

    fun setmBleViewType(mBleViewType: String) {
        this.mBleViewType = mBleViewType
    }

    constructor(mStatus: Boolean) {
        this.isBleStatus = mStatus
    }

    fun getmHight(): Float {
        return mHight
    }

    fun setmHight(mHight: Float) {
        this.mHight = mHight
    }

    fun getmWeight(): Float {
        return mWeight
    }

    fun setmWeight(mWeight: Float) {
        this.mWeight = mWeight
    }

    fun getmHighBlood(): String? {
        return mHighBlood
    }

    fun setmHighBlood(mHighBlood: String) {
        this.mHighBlood = mHighBlood
    }

    fun getmLowBlood(): String? {
        return mLowBlood
    }

    fun setmLowBlood(mLowBlood: String) {
        this.mLowBlood = mLowBlood
    }

    fun getmPulse(): String? {
        return mPulse
    }

    fun setmPulse(mPulse: String) {
        this.mPulse = mPulse
    }

    fun getmType(): String? {
        return mType
    }

    fun setmType(mType: String) {
        this.mType = mType
    }

    constructor(value: Int) {
        this.value = value.toFloat()
    }
}
